package Combined_training;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package Combined_training
 * @date 2024/3/31 下午2:18
 */
public class NoteBook {
    public void start( ){
        System.out.println("笔记本开机");


    }
    public void shutdown(){
        System.out.println("笔记本关机");
    }
    public void UseUSB(USB usb) {
        if (usb instanceof Mouse){
            Mouse mouse=(Mouse)usb;
            mouse.open();
            mouse.close();
            mouse.click();
        }
        else {
            keybord keybord=(keybord)usb;
            keybord.open();
            keybord.close();
            keybord.type();
        }

    }

}
